package com.zhs.gccs.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hjq.shape.view.ShapeCheckBox;
import com.zhs.gccs.R;
import com.zhs.gccs.vo.GccsDictListBean;

/**
 * Created by chengzf on 2024/7/21.
 */
public class ReportGridTitleAdapter extends BaseQuickAdapter<GccsDictListBean.Children, BaseViewHolder> {

    public ReportGridTitleAdapter() {
        super(R.layout.item_button_check_view);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, GccsDictListBean.Children bean) {
        ShapeCheckBox check = holder.getView(R.id.check_box);
        check.setText(bean.getMc());
        check.setChecked(bean.isCheck());
    }
}
